import "./App.css";
import "../lib/rui7.css";
import mobileVerify from "./Components/MobileVerify/index";
import smsVerify from "./Components/SmsVerify/index";
import ncSmsVerify from "./Components/NcSmsVerify/index";
import ncVerify from "./Components/NcVerify/index";
import ncTips from "./Components/NcTips/index";

function App() {
  return (
    <div className="App">
      <button
        onClick={() => {
          mobileVerify.show({
            confirm: (e) => {},
          });
        }}
      >
        手机号验证
      </button>
      <button
        onClick={() => {
          smsVerify.show({
            mobile: "15069195578",
            send: () => {},
            confirm: (e) => {},
          });
        }}
      >
        短信验证
      </button>
      <button
        onClick={() => {
          ncSmsVerify.show({
            mobile: "16678095819",
            send: () => {},
            confirm: (e) => {
              console.log(e);
            },
          });
        }}
      >
        数字安全密码手机验证码
      </button>
      <button
        onClick={() => {
          ncVerify.show({
            showTips: true,
            expirationTime: 5,
            confirm: (e) => {
              console.log(e);
            },
          });
        }}
      >
        数字安全密码验证
      </button>
      <button
        onClick={() => {
          ncTips.show({
            confirm: (e) => {
              console.log(e);
            },
          });
        }}
      >
        数字安全密码提示
      </button>
    </div>
  );
}

export default App;
